package cc.facesign.admin.mapper;

import cc.facesign.admin.bean.TblUser;
import cc.facesign.admin.bean.query.UserQuery;
import cc.facesign.admin.bean.vo.UserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-05-06
 */
public interface TblUserMapper extends BaseMapper<TblUser> {

    UserVo getInfoById(String id);

    List<UserVo> getInfoByIdBatch(@Param("list") List<String> ids);

    /**
     * 获取被userId直接管理的部门id
     * @param userId
     * @return
     */
    List<String> getManageDeptByUserId(String userId);

    List<UserVo> getInfoListByVo(UserQuery query);
}
